package com.blog.service;

import com.blog.pojo.Comment;
import com.blog.pojo.Diary;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

public interface DiaryService {

    ArrayList<HashMap<String,String>> findDiaryMotto();

    int findDiaryCount(String createTime);

    ArrayList<Diary> findDiary(int currentPage,String createTime);

    List<Comment> findDiaryComment(int id);

    void addComment(int id , Comment comment);

    void addDiary(Diary diary);
}
